﻿<%@ Page Title="" Language="C#" MasterPageFile="~/site.master" AutoEventWireup="true" CodeFile="ScratchCard.aspx.cs" Inherits="ScratchCard" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table align="center" width="50%">
        <tr>
            <td colspan="2" style="text-align: center">
                Nạp tiền vào tài khoản<br/>mã số thẻ gồm 15 chữ số
                </td>
        </tr>
        <tr>
            <td colspan="2" style="padding-left: 20px">
                
                <asp:ValidationSummary ID="ValidationSummary1" runat="server" ForeColor="Red" />
                
                </td>
        </tr>
        <tr>
            <td>Mã số thẻ</td>
            <td>
                <asp:TextBox ID="TB_Code" runat="server" AutoCompleteType="Disabled" 
                    MaxLength="15"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="TB_Code" ErrorMessage="Hãy nhập mã thẻ" ForeColor="Red">*</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                    ControlToValidate="TB_Code" ErrorMessage="mã thẻ gồm 15 chữ số" ForeColor="Red" 
                    ValidationExpression="\d{15}">*</asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td colspan="2" style="text-align: center">
                <asp:Label ID="LB_Msg" runat="server" ForeColor="Red"></asp:Label></td>
        </tr>
        <tr>
            <td colspan="2" style="text-align: center">
                <asp:Button ID="Button1" runat="server" Text="Nạp thẻ" 
                    onclick="Button1_Click" /></td>
        </tr>
    </table>
</asp:Content>

